package com.foreknow.demo9;

public class Manager {
    public void m1(A a){
        a.eat();
    }

    public A m2(){
        A a = new AImpl();
        return a;
    }

    public static void main(String[] args) {
        Manager manager = new Manager();
        AImpl a = new AImpl();
        manager.m1(a);

        A aa = manager.m2();
        aa.eat();
    }
}
